import { h } from 'vue'
import {callConfirmMethod} from '@/common/layer-com-utils.js'
import modifyStatus from './modify-status/modify-status.vue'

/**
 * @param {Object} serverData - 
 */
export function layerWithdrawListModifyStatus(serverData){
    let confirmMethod=[];
    layer.open({
        title:`修改提现列表`,
        type:1,
        area:[`520px`,`580px`],
        content:h(modifyStatus,{
            serverData,
            callback:(arrayFn)=>confirmMethod=arrayFn
        }), 
        appContext:getApp().$vm.$.appContext,
        shade: true, 
        shadeClose:false,
        btn: [{
            text:`确定修改`, 
            callback: (layerId) =>callConfirmMethod.call(this,confirmMethod[0],layerId)
        },{
            text:`取消关闭`, 
            callback: (layerId) =>callConfirmMethod.call(this,confirmMethod[1],layerId)
        }]
    })
}